import request from '@/sheep/request';

export default {
    // 合同追溯列表
    contract_traceabilityIndexAPI: (params) =>
    request({
        url: '/api/contract_traceability/index',
        method: 'GET',
        custom: {
            showSuccess: false,
            successMsg: '',
            showError: true,
            errorMsg: '',
            showLoading: false,
            loadingMsg: '加载中',
            auth: true,
        },
        params
    }),
    // 邮寄合同新增
	contract_traceabilityAddAPI: (data) =>
    request({
        url: '/api/contract_traceability/add',
        method: 'POST',
        custom: {
            showSuccess: true,
            successMsg: '',
            showError: true,
            errorMsg: '',
            showLoading: true,
            loadingMsg: '加载中',
            auth: true,
        },
        data
    }),
    // 邮寄合同详情
    contract_traceabilityViewAPI: (params) =>
    request({
        url: '/api/contract_traceability/view',
        method: 'GET',
        custom: {
            showSuccess: false,
            successMsg: '',
            showError: true,
            errorMsg: '',
            showLoading: false,
            loadingMsg: '加载中',
            auth: true,
        },
        params,
    }),
    // 确认收货
    contract_traceabilityConfirmAPI: (params) =>
    request({
        url: '/api/contract_traceability/confirm',
        method: 'GET',
        custom: {
            showSuccess: true,
            successMsg: '',
            showError: true,
            errorMsg: '',
            showLoading: true,
            loadingMsg: '加载中',
            auth: true,
        },
        params
    }),
    // 填写邮寄
    contract_traceabilityEditAPI: (data) =>
    request({
        url: '/api/contract_traceability/edit',
        method: 'POST',
        custom: {
            showSuccess: true,
            successMsg: '',
            showError: true,
            errorMsg: '',
            showLoading: true,
            loadingMsg: '加载中',
            auth: true,
        },
        data
    })



    // // 发票修改
    // invoiceEditAPI: (data) =>
    // request({
    //     url: '/api/invoice/edit',
    //     method: 'POST',
    //     data,
    //     custom: {
    //         auth: true,
    //         showSuccess: true,
    //     },
    // }),
    // // 发票删除
    // invoiceDelAPI: (params) =>
    // request({
    //     url: '/api/invoice/del',
    //     method: 'GET',
    //     params,
    //     custom: {
    //         auth: true,
    //         showSuccess: true,
    //     },
    // }),
    // //发票新增
	// invoiceAddAPI: (data) =>
    // request({
    //     url: '/api/invoice/add',
    //     method: 'POST',
    //     custom: {
    //         auth: true,
    //         showSuccess: true,
    //     },
    //     data,
    // }),
    // //发票详情
	// invoiceViewAPI: (params) =>
    // request({
    //     url: '/api/invoice/view',
    //     method: 'GET',
    //     custom: {
    //         auth: true
    //     },
    //     params,
    // }),
}